<?
$nombre="";
$apellido="";
$telefono="";
$email="";

if($tipo == "1")
{
foreach($datos as $dat)
{
$nombre = $dat->getNombre(); 
$apellido = $dat->getApellido(); 
$telefono = $dat->getTelefonoHab(); 	
$email = $dat->getEmail(); 
}
?>
          <fieldset>
          <legend>Personal</legend>
            <table width="650" border="1" align="center">
              <tr>
                <td width="50%" height="20">Nombre: <? echo $nombre;?> </td>
                <td width="50%" height="20">Apellido: <? echo $apellido?> </td>
              </tr>
              <tr>
                <td height="20">Tel&eacute;fono: <? echo $telefono?></td>
                <td height="20">E-mail: <? echo $email?></td>
              </tr>
            </table>
            <table width="650" height="58" align="center">
              <tr>
                <td align="center" valign="bottom"><? echo link_to('volver...','personal/index')?></td>
              </tr>
            </table>
        </fieldset>
<?
}
elseif($tipo == "2")
{
foreach($datosindes as $dat)
{
$nombre = $dat->getNombre(); 
$apellido = $dat->getApellido(); 
$telefono = $dat->getTelefonoCelular(); 	
}
?>

          <fieldset>
          <legend>Personal</legend>
            <table width="650" border="1" align="center">
              <tr>
                <td width="50%" height="20">Nombre: <? echo $nombre;?> </td>
                <td width="50%" height="20">Apellido: <? echo $apellido?> </td>
              </tr>
              <tr>
                <td height="20">Tel&eacute;fono Celular: <? echo $telefono?></td>
                <td height="20">E-mail: <? echo $correo?></td>
              </tr>
            </table>
            <table width="650" height="58" align="center">
              <tr>
                <td align="center" valign="bottom"><? echo link_to('volver...','personal/index')?></td>
              </tr>
            </table>
        </fieldset>

<?
}
?>